<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="bootstrap/js/jquery.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>

    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
  </head>
  <body>
    <h3>创建模态框</h3>
    <!-- 按钮触发模态框 -->
    <button
      class="btn btn-primary btn-lg"
      data-toggle="modal"
      data-target="#myModal"
    >
      开始演示模态框
    </button>
    <!-- 模态框（Modal） -->
    <div
      class="modal fade"
      id="myModal"
      tabindex="-1"
      role="dialog"
      aria-labelledby="myModalLabel"
      aria-hidden="true"
    >
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button
              type="button"
              class="close"
              data-dismiss="modal"
              aria-hidden="true"
            >
              &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">添加用户</h4>
          </div>
          <div class="modal-body">
            <form action="" class="form-horizontal" role="form">
              <div class="form-group">
                <label for="uname" class="col-xs-2 control-label">姓名</label>
                <div class="col-xs-8">
                  <input
                    type="text"
                    id="uname"
                    class="form-control"
                    placeholder="请输入姓名"
                  />
                </div>
              </div>
            </form>
            <form action="" class="form-horizontal" role="form">
              <div class="form-group">
                <label for="upmd" class="col-xs-2 control-label">密码</label>
                <div class="col-xs-8">
                  <input
                    type="text"
                    id="upmd"
                    class="form-control"
                    placeholder="请输入密码"
                  />
                </div>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">
              关闭
            </button>
            <button type="button" class="btn btn-primary">提交更改</button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal -->
    </div>
    <h3>创建模态框</h3>
    <!-- 按钮触发模态框 -->
    <button
      class="btn btn-primary btn-lg"
      data-toggle="modal"
      data-target="#myModal"
    >
      开始演示模态框
    </button>
    <!-- 模态框（Modal） -->
    <div
      class="modal fade"
      id="myModal"
      tabindex="-1"
      role="dialog"
      aria-labelledby="myModalLabel"
      aria-hidden="true"
    >
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button
              type="button"
              class="close"
              data-dismiss="modal"
              aria-hidden="true"
            >
              &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">添加用户</h4>
          </div>
          <div class="modal-body">
            <form class="form-horizontal" role="form">
              <div class="from-group">
                <label for="uname" class="col-md-2 control-label">姓名</label>
                <div class="col-md-8">
                  <input
                    type="text"
                    id="uname"
                    class="form-control"
                    placeholder="请输入姓名"
                  />
                </div>
              </div>
              <div class="from-group">
                <label for="upwd" class="col-md-2 control-label">密码</label>
                <div class="col-md-8">
                  <input
                    type="text"
                    id="upwd"
                    class="form-control"
                    placeholder="请输入密码"
                  />
                </div>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">
              关闭
            </button>
            <button type="button" class="btn btn-primary">提交更改</button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal -->
    </div>
  </body>
</html>
